import './app.css'
const getTag = (type)=>{
    if(type === 1){
        return <h1>this is h1</h1>
    }
    if(type === 2){
        return <h1>this is h2</h1>
    }
    if(type === 3){
        return <h1>this is h3</h1>
    }
}
const style = {
    color:'green'
}
const activeFlag = true
function App(){
    return (
        <div className="App" style={{color:'red'}}>
            {getTag(1)}
            {getTag(2)}
            <h1 style={style}>asas</h1>
            <h1 className="xixi">11111</h1>
            <h1 className={activeFlag?'haha':'xixi'}>22222</h1>
        </div>
    )
}

export default App